const express = require('express')
const router = express.Router()

const { pool, executeQuery } = require('../mysql/db')

router.get('/userList', async (req, res) => {
  const sql = `select * from user`
  const list = await executeQuery(sql)
  res.send(list)
})

module.exports = router